import { createSlice } from "@reduxjs/toolkit";
// import type { PayloadAction } from "@reduxjs/toolkit";

export interface CounterState {
  value: number;
}

// const initialState: CounterState = {
//   value: 0,
// };
export const counterSlice = createSlice({
  name: "counter",
  initialState: {
    form:1
  },
  reducers: {
    upSHUf:(state)=>{
        state.form += 1
    }
  },
});
export default counterSlice.reducer;
export const { upSHUf } = counterSlice.actions
